<?php
include_once("functions/db_manipulate.php");

if (init()) {
  redirect("?action=index");
  exit();
}

?>


<!DOCTYPE html>
<html>
<head>
  <title></title>
  <link rel="stylesheet" type="text/css" href="css/navigation.css">
  <link rel="stylesheet" type="text/css" href="css/menu.css">
  <link rel="stylesheet" type="text/css" href="css/common.css">
  <link rel="stylesheet" type="text/css" href="css/passforgot.css">
  <script src="resources/jquery.js"></script>

  <meta charset="<?= getMessageByKey("default.charset") ?>">
</head>
<body class="body">

<?php
include_once("menu.php");
?>

<div class="maincommon">

  <div class="forgotheader">
    <?= getMessageByKey("forgot.header") ?>
  </div>
  <form action="?action=forgothand" method="post" id="loginform">
    <div class="forgotdiv">
      <div class="tr">
        <div class="td">
          <?= getMessageByKey("forgot.email") ?>
        </div>
        <div class="td">
          <input type="text" name="email" maxlength="100" class="forminput">
        </div>
      </div>
      <div class="tr">
        <div class="button" onclick="$('#loginform').submit()">
          <?= getMessageByKey("button.forgot.restore") ?>
        </div>
        <div class="button" onclick="location.href='?action=reg'">
          <?= getMessageByKey("button.forgot.registration") ?>
        </div>
        <div class="button" onclick="location.href='?action=index'">
          <?= getMessageByKey("button.forgot.cancel") ?>
        </div>
      </div>

    </div>
  </form>

</div>


<?php
include_once("navigation.php");
?>

</body>
</html>
